import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
// 引入双向绑定_step1:
// 引入Forms模块,使ng支持双向数据绑定
import { FormsModule } from '@angular/forms';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { Instance01Component } from './instance01/instance01.component';
import { Todos01Component } from './todos01/todos01.component';
import { Instance02Component } from './instance02/instance02.component';
import { Instance03Component } from './instance03/instance03.component';
import { Instance04Component } from './instance04/instance04.component';

@NgModule({
  declarations: [AppComponent, Instance01Component, Todos01Component, Instance02Component, Instance03Component, Instance04Component],
  // 引入双向绑定_step2:
  // 注入Forms模块
  imports: [BrowserModule, AppRoutingModule, FormsModule],
  providers: [],
  bootstrap: [AppComponent],
})
export class AppModule {}
